.class Lcom/waiqin365/lightapp/visit/fr;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v4, 0x0

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/visit/a/a/av;

    iget-object v1, v0, Lcom/waiqin365/lightapp/visit/a/a/av;->c:Ljava/lang/String;

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_1

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    const v2, 0x7f08013b

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_1
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/a/a/av;->b()Z

    move-result v2

    if-eqz v2, :cond_5

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/a/a/av;->b:Ljava/lang/String;

    const-string/jumbo v3, "1"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;

    move-result-object v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->o()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_2

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/o;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/o;-><init>()V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/login/mainview/a;->k(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Lcom/waiqin365/lightapp/kehu/b/o;->a:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/o;->b:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/o;->d:Ljava/lang/String;

    const-string/jumbo v2, ""

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/o;->e:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->d(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->a(Lcom/waiqin365/lightapp/kehu/b/o;)V

    new-instance v1, Landroid/content/Intent;

    const-string/jumbo v2, "android.intent.action.RUN"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    const-class v3, Lcom/fiberhome/upload/UpLoadService;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    :cond_2
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    const v3, 0x7f080718

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "savetime"

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/a/a/av;->d:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "visitid"

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/a/a/av;->e:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Lcom/waiqin365/compons/c/f;

    move-result-object v0

    if-eqz v0, :cond_3

    const-string/jumbo v0, "llc"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Lcom/waiqin365/compons/c/f;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/compons/c/f;->b()D

    move-result-wide v4

    invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Lcom/waiqin365/compons/c/f;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/compons/c/f;->c()D

    move-result-wide v4

    invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "lla"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Lcom/waiqin365/compons/c/f;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->e()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "pos_offset"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->h(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :goto_1
    const-string/jumbo v0, "remarks"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->i(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "picture_path"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->j(Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    const/4 v2, -0x1

    invoke-virtual {v0, v2, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->setResult(ILandroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;->back()V

    goto/16 :goto_0

    :cond_3
    const-string/jumbo v0, "llc"

    const-string/jumbo v2, ""

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "lla"

    const-string/jumbo v2, ""

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "pos_offset"

    const-string/jumbo v2, ""

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/fr;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitRemarksActivity;

    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x2c4
        :pswitch_0
    .end packed-switch
.end method
